{include file=member.header.html}
<script type="text/javascript">
function DropDdata(item_id)
{
	if(confirm('{$lang.drop_confirm}') == true)
	{
		var url = REAL_SITE_URL+"/index.php?app=my_favorite&act=drop";
		$.getJSON(url,{'item_id':item_id,'type':'goods'},function(data){
			if(data == true){
				msg("{$lang.handle_ok}");
				setTimeout(function(){
					window.location.href=REAL_SITE_URL+"/index.php?app=my_favorite";
				},1500);
			} 
		},"json");
	}
}
</script>
<div id="page-my-favorite" class="mb10">
	<div class="page-body my-favorite mb10">
		<!--{foreach from=$collect_goods item=goods name=v}-->
		<dl>
			<a href="{url app=goods&id=$goods.goods_id}"  class="attr webkit-box clearfix">
				<dt><img src="{$goods.default_image}" width="90" height="90"  /></dt>
				<dd>
					<h3>{$goods.goods_name|escape}</h3>
					<p>{$goods.price|price}</p>
				</dd>
			</a>
			<a href="javascript:;" class="delete" onclick="DropDdata('{$goods.goods_id}');" class="delete">{$lang.drop}</a>
		</dl>
		<!--{foreachelse}-->
        <div class="no-record">{$lang.no_goods}</div>
        <!--{/foreach}-->
	</div>
    <!--{if $collect_goods}-->
    {include file=page.bottom.html}
    <!--{/if}-->
</div>
{include file=footer.html}
